package com.ny.mapper;

import java.util.List;
import com.ny.domain.EquipmentMaintenanceDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * EquipmentMaintenanceMapper
 *
 * @author MSI-NB
 * @date 2025-03-08 13:14:38
 */
@Mapper
public interface EquipmentMaintenanceMapper {

    /**
     * 通过维护记录ID查询维护信息
     *
     * @Param maintenanceId
     * @Return EquipmentMaintenanceDO
     */
    EquipmentMaintenanceDO selectById(Integer maintenanceId);

    /**
     * 插入器材维护信息
     *
     * @Param equipmentMaintenanceDO
     * @Return int
     */
    int insert(EquipmentMaintenanceDO equipmentMaintenanceDO);

    /**
     * 更新器材维护信息
     *
     * @Param equipmentMaintenanceDO
     * @Return int
     */
    int updateById(EquipmentMaintenanceDO equipmentMaintenanceDO);

    /**
     * 删除器材维护信息
     *
     * @Param maintenanceId
     * @Return int
     */
    int deleteById(Integer maintenanceId);

    /**
     * 查询所有器材维护信息
     *
     * @Return List<EquipmentMaintenanceDO>
     */
    List<EquipmentMaintenanceDO> selectAll();
}
